﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CVM.Core;

namespace CVM.Data.Entities
{
    public abstract class DataEntityBase
    {
        #region Base Fields
        public int ID { get; set; }
        public DateTime CreatedDate;
        public DataEntityType Type;
        #endregion

        private string _tableName;
        public string TableName
        {
            get
            {
                if (string.IsNullOrEmpty(_tableName))
                    return Convert.ToString(Type);

                return _tableName;
            }
            set { _tableName = value; }
        }
    }
}
